<#-- dto与do的转换类生成模板 -->
package ${packageName};
<#list importPackage as importPackage>
import ${importPackage};
</#list>
/**
 * <p>${classDesc}</p>
 * @author ${userName}
 * @since ${currentDate}
 */
<#if annotations ??>
<#list annotations as annotation>
@${annotation}
</#list>
<#else>
</#if>
public class ${className}{

    <#list functionMsgs as functionMsg>
    <#if functionMsg.funcDesc??>
    /**
     * ${functionMsg.funcDesc}
     */
    </#if>
    <#if functionMsg.annotation??>
    ${functionMsg.annotation}
    <#else>
    </#if>
    public ${functionMsg.resultType} ${functionMsg.functionName}(${(functionMsg.paramAnnotation)!}${functionMsg.paramterType} ${functionMsg.paramterName}){
      ${functionMsg.resultType} ${functionMsg.resultType?uncap_first} = new ${functionMsg.resultType}();
      BeanUtils.copyProperties(${functionMsg.paramterName},${functionMsg.resultType?uncap_first});
      <#if functionMsg.codeBlock??>
      <#list functionMsg.codeBlock as codeStr>
      ${codeStr}
      </#list>
      </#if>
      return ${functionMsg.resultType?uncap_first};
    }
    <#if functionMsg_has_next>${"\n"}</#if>
    </#list>

}